package com.aoip.telemetry.telemetry.entity.quality;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 计算模型实体
 *
 * @author chenbai
 * @version 1.0
 * @date 2022/4/29 11:46
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Builder
@TableName("compute_model")
@ApiModel(description = "计算模型实体")
public class ComputeModelEntity {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键")
    private String id;

    @TableField(value = "model_name")
    @ApiModelProperty("计算模型名称")
    private String modelName;

    @TableField(value = "model_desc")
    @ApiModelProperty("计算模型功能说明")
    private String modelDesc;

    @TableField(value = "model_desc_file_id")
    @ApiModelProperty("计算模型功能说明文件id")
    private String modelDescFileId;

    @TableField(value = "model_file_id")
    @ApiModelProperty("计算模型jar文件id")
    private String modelFileId;

    @TableField(value = "enable")
    @ApiModelProperty("是否启用（1：启用，0：停用）")
    private int enable;

    @TableField(exist = false)
    @ApiModelProperty("计算模型关联测站信息列表")
    private List<RelComputeModelStEntity> stList;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("修改时间")
    private LocalDateTime modifyTime;

    @TableField(value = "del_flag", fill = FieldFill.INSERT)
    @ApiModelProperty("是否删除（0：正常，1：删除）")
    @TableLogic
    private Integer delFlag;

    @TableField(value = "bz")
    @ApiModelProperty("备注信息")
    private String bz;
}
